home *** CD-ROM | disk | FTP | other *** search
- unit DAXDoc_TLB;
-
- // ************************************************************************ //
- // WARNING //
- // ------- //
- // The types declared in this file were generated from data read from a //
- // Type Library. If this type library is explicitly or indirectly (via //
- // another type library referring to this type library) re-imported, or the //
- // 'Refresh' command of the Type Library Editor activated while editing the //
- // Type Library, the contents of this file will be regenerated and all //
- // manual modifications will be lost. //
- // ************************************************************************ //
-
- // PASTLWTR : $Revision: 1.11.1.75 $
- // File generated on 1/11/99 4:38:29 AM from Type Library described below.
-
- // ************************************************************************ //
- // Type Lib: C:\My Documents\DelphiMag, Feb99\DAXDoc\DAXDoc.tlb
- // IID\LCID: {C10BE34C-A81F-11D2-AF31-0000861EF0BB}\0
- // Helpfile:
- // HelpString: Delphi ActiveX Document Server
- // Version: 1.0
- // ************************************************************************ //
-
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL;
-
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used: //
- // Type Libraries : LIBID_xxxx //
- // CoClasses : CLASS_xxxx //
- // DISPInterfaces : DIID_xxxx //
- // Non-DISP interfaces: IID_xxxx //
- // *********************************************************************//
- const
- LIBID_DAXDoc: TGUID = '{C10BE34C-A81F-11D2-AF31-0000861EF0BB}';
- IID_IDelphiAxDoc: TGUID = '{C10BE34D-A81F-11D2-AF31-0000861EF0BB}';
- CLASS_DelphiAxDoc: TGUID = '{C10BE34F-A81F-11D2-AF31-0000861EF0BB}';
- type
-
- // *********************************************************************//
- // Forward declaration of interfaces defined in Type Library //
- // *********************************************************************//
- IDelphiAxDoc = interface;
- IDelphiAxDocDisp = dispinterface;
-
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library //
- // (NOTE: Here we map each CoClass to its Default Interface) //
- // *********************************************************************//
- DelphiAxDoc = IDelphiAxDoc;
-
-
- // *********************************************************************//
- // Interface: IDelphiAxDoc
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {C10BE34D-A81F-11D2-AF31-0000861EF0BB}
- // *********************************************************************//
- IDelphiAxDoc = interface(IDispatch)
- ['{C10BE34D-A81F-11D2-AF31-0000861EF0BB}']
- end;
-
- // *********************************************************************//
- // DispIntf: IDelphiAxDocDisp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {C10BE34D-A81F-11D2-AF31-0000861EF0BB}
- // *********************************************************************//
- IDelphiAxDocDisp = dispinterface
- ['{C10BE34D-A81F-11D2-AF31-0000861EF0BB}']
- end;
-
-
- // *********************************************************************//
- // OLE Control Proxy class declaration
- // Control Name : TDelphiAxDoc
- // Help String : Delphi ActiveX Document Object
- // Default Interface: IDelphiAxDoc
- // Def. Intf. DISP? : No
- // Event Interface:
- // TypeFlags : (2) CanCreate
- // *********************************************************************//
- TDelphiAxDoc = class(TOleControl)
- private
- FIntf: IDelphiAxDoc;
- function GetControlInterface: IDelphiAxDoc;
- protected
- procedure CreateControl;
- procedure InitControlData; override;
- public
- property ControlInterface: IDelphiAxDoc read GetControlInterface;
- published
- property TabStop;
- property Align;
- property DragCursor;
- property DragMode;
- property ParentShowHint;
- property PopupMenu;
- property ShowHint;
- property TabOrder;
- property Visible;
- property OnDragDrop;
- property OnDragOver;
- property OnEndDrag;
- property OnEnter;
- property OnExit;
- property OnStartDrag;
- end;
-
- procedure Register;
-
- implementation
-
- uses ComObj;
-
- procedure TDelphiAxDoc.InitControlData;
- const
- CControlData: TControlData2 = (
- ClassID: '{C10BE34F-A81F-11D2-AF31-0000861EF0BB}';
- EventIID: '';
- EventCount: 0;
- EventDispIDs: nil;
- LicenseKey: nil;
- Flags: $00000000;
- Version: 401);
- begin
- ControlData := @CControlData;
- end;
-
- procedure TDelphiAxDoc.CreateControl;
-
- procedure DoCreate;
- begin
- FIntf := IUnknown(OleObject) as IDelphiAxDoc;
- end;
-
- begin
- if FIntf = nil then DoCreate;
- end;
-
- function TDelphiAxDoc.GetControlInterface: IDelphiAxDoc;
- begin
- CreateControl;
- Result := FIntf;
- end;
-
- procedure Register;
- begin
- RegisterComponents('ActiveX',[TDelphiAxDoc]);
- end;
-
- end.
-